package com.one.group.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 设备主表实体类
 *
 * @author Cherry
 */
@Table(value = "sp_equipment")
@Data
@Builder
public class Equipment implements Serializable {
    @Id
    private Long id;

    @Column(value = "tenant_id", tenantId = true)
    private Long tenantId;

    @Column(value = "device_name")
    private String deviceName;

    @Column(value = "device_code")
    private String deviceCode;

    @Column(value = "device_type")
    private String deviceType;

    @Column(value = "device_material")
    private String deviceMaterial;

    private String unit;

    @Column(value = "device_weight")
    private String deviceWeight;

    @Column(value = "price")
    private BigDecimal price;

    @Column(value = "device_stock")
    private int deviceStock;

    @Column(value = "status")
    private int status;

    @Column(value = "install_date")
    private Date installDate;
    @Column(value = "install_address")
    private String installAddress;

    @Column(value = "manufacturer")
    private String manufacturer;
    @Column(value = "manufacturer_address")
    private String manufacturerAddress;
    @Column(value = "manufacturer_phone")
    private String manufacturerPhone;

    @Column(value = "responsible_person")
    private String responsiblePerson;

    @Column(value = "is_deleted", isLogicDelete = true)
    private Integer isDeleted;

    @Column(value = "create_time")
    private Date createTime;

    @Column(value = "update_time")
    private Date updateTime;

}
